/*
 * @Autor: 黄旗
 * @Date: 2020-06-11 15:55:48
 */
import request from '@/plugins/request';

export function AccountLogin(data) {
  return request({
    url: '/v1/site/login',
    method: 'post',
    data,
  });
}
export function AccountdingLogin(data) {
  return request({
    url: '/v1/site/ding-login',
    method: 'post',
    data,
  });
}

export function AccountRegister(data) {
  return request({
    url: '/api/register',
    method: 'post',
    data,
  });
}

// 菜单
export function GetMenus(data) {
  return request({
    url: '/v1/site/permissions',
    method: 'get',
    params: data,
  });
}
// 钉钉扫码登录
export function dingLoginAccount(data) {
  return request({
    url: '/v1/dingtalk/bind',
    method: 'post',
    data,
  });
}
/**
 * 待确认的接口
 * @param {*} data
 * @returns
 */
export function robotindexwxids(data) {
  return request({
    url: '/v1/robot/index/wxids',
    method: 'get',
    params: data
  });
}
// 退出登录v1/site/logout
export function AccountLogout(data) {
    return request({
      url: '/v1/site/logout',
      method: 'post',
      data,
    });
  }